/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package common;

/**
 *
 * @author MRDO
 */
public class KeyValue {
    String key, value;
    
    public KeyValue(String key, String value){
        this.key = key;
        this.value = value;
    }
    
    public String getValue(){
        return value;
    }
    public String getKey(){
        return key;
    }
    
    @Override
    public String toString(){
        return key;
    }
    
    @Override
	public boolean equals(Object obj) {
		if (obj instanceof KeyValue) {
			KeyValue kv = (KeyValue) obj;
			return (kv.value.equals(this.value));
		}
		return false;
	}
}
